/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.northwind.dao.base;

import com.northwind.dao.CategoriaDAO;
import java.util.Locale;
import java.util.ResourceBundle;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author n523
 */
public class BaseDAO {
    protected String url;
    protected String password;
    protected String usuario;
    
    public BaseDAO() {
        try {
            Class.forName("com.mysql.jdbc.Driver");
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(CategoriaDAO.class.getName()).log(Level.SEVERE, null, ex);
        }
        ResourceBundle propiedades = ResourceBundle.getBundle("com.northwind.dao.base.db");
        url = propiedades.getString("url").trim();
        usuario = propiedades.getString("usuario").trim();
        password = propiedades.getString("password").trim();
    }
}
